package com.deyuanyun.pic.pipe.domain.exceldomain;

import com.caixu.beanvalidateutil.annotations.CodeVail;
import com.caixu.beanvalidateutil.annotations.DataValidate;
import com.deyuanyun.pic.pipe.support.validatefun.CodeValidata;
import com.deyuanyun.pic.pipe.support.validatefun.PipeLineValidata;
import com.deyuanyun.pic.pipe.support.validatefun.PipeSegmentValidata;

import java.util.Date;

/**
 * Created by xu on 2016/1/22.
 * 定标点导入
 */
public class TrackPointExcelImportVO {
    private String code;
    @DataValidate(notNull = true,myFunction = PipeLineValidata.class,myFunctionMessage = "管道不存在")
    private String pipeLineId;//管道名称
    @DataValidate(notNull = true,myFunction = PipeSegmentValidata.class,myFunctionMessage = "管段不存在")
    private String pipeSegmentId;//管段
    @DataValidate(notNull = true)
    private String customNumber;//定标点编号
    @CodeVail(majorCode = "TRACK_POINT_TYPE")
    @DataValidate(notNull = true, myFunction = CodeValidata.class,myFunctionMessage = "定标点类型不正确")
    private String type;//定标点类型
    @DataValidate(notNull = true ,numberRang = "{-180,180}",type = Number.class,typeMessage = "坐标字段必须为数字类型")
    private String laocationX;
    @DataValidate(notNull = true ,numberRang = "{-90,90}",type = Number.class,typeMessage = "坐标字段必须为数字类型")
    private String laocationY;
    @DataValidate(notNull = true ,type = Number.class,typeMessage = "坐标字段必须为数字类型")
    private String laocationZ;
    @DataValidate(notNull = true)
    private String adminRegionName;

    @DataValidate(lengthLimit = "{80}")
    private String RECORDER;
    @DataValidate(type = Date.class,datePattern = {"yyyyMMdd","yyyy-MM-dd","yyyy/MM/dd"},typeMessage = "yyyyMMdd记录时间格式有误")
    private String RECORDTIME;
    @DataValidate(lengthLimit = "{999}")
    private String createRemark;


    private String priUuid;


    public String getPipeLineId() {
        return pipeLineId;
    }

    public void setPipeLineId(String pipeLineId) {
        this.pipeLineId = pipeLineId;
    }

    public String getPipeSegmentId() {
        return pipeSegmentId;
    }

    public void setPipeSegmentId(String pipeSegmentId) {
        this.pipeSegmentId = pipeSegmentId;
    }

    public String getCustomNumber() {
        return customNumber;
    }

    public void setCustomNumber(String customNumber) {
        this.customNumber = customNumber;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getLaocationX() {
        return laocationX;
    }

    public void setLaocationX(String laocationX) {
        this.laocationX = laocationX;
    }

    public String getLaocationY() {
        return laocationY;
    }

    public void setLaocationY(String laocationY) {
        this.laocationY = laocationY;
    }

    public String getLaocationZ() {
        return laocationZ;
    }

    public void setLaocationZ(String laocationZ) {
        this.laocationZ = laocationZ;
    }

    public String getAdminRegionName() {
        return adminRegionName;
    }

    public void setAdminRegionName(String adminRegionName) {
        this.adminRegionName = adminRegionName;
    }

    public String getRECORDER() {
        return RECORDER;
    }

    public void setRECORDER(String RECORDER) {
        this.RECORDER = RECORDER;
    }

    public String getRECORDTIME() {
        return RECORDTIME;
    }

    public void setRECORDTIME(String RECORDTIME) {
        this.RECORDTIME = RECORDTIME;
    }

    public String getCreateRemark() {
        return createRemark;
    }

    public void setCreateRemark(String createRemark) {
        this.createRemark = createRemark;
    }

    public String getPriUuid() {
        return priUuid;
    }

    public void setPriUuid(String priUuid) {
        this.priUuid = priUuid;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}
